package com.bangdream.michelia.view.fragment.exam;

import com.bangdream.michelia.presenter.base.BasePresenter;
import com.bangdream.michelia.view.activity.exam.OnMainActivityListener;
import com.bangdream.michelia.view.fragment.currency.LazyLoadFragment;

/**
 * @date on 2018/8/18 19:37
 * @email 909732184@qq.com
 * 考试的答题抽象页
 */
public abstract class BaseAnswerFragment<V,P extends BasePresenter<V>> extends LazyLoadFragment<V,P>{
    public abstract P createPresenter();
    //第一次页面显示了才去拉取数据
    public abstract void loadData();

    //设置答题时间
    public abstract void setTime(String stTime);
    /**
     * 提交保存本题答案
     * @param isFinish  是否交卷
     * @param isNext  提交请求完毕之后是跳转上一题还是下一题
     */
    public abstract void saveAnswer(boolean isFinish,boolean isNext);

    public abstract void setOnMainActivityListener(OnMainActivityListener onMainActivityListener);
}
